package com.ruoyi.develop.goodsSaledoGongxuUserLirun.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 报工算利润列对象 goods_saledo_gongxu_user_lirun
 *
 * @author lmm
 * @date 2025-06-27
 */
public class GoodsSaledoGongxuUserLirun extends BaseEntity {
private static final long serialVersionUID=1L;

    /** $column.columnComment */
    private String id;

    /** 序号 */
    @Excel(name = "序号")
    private String xuhao;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    /** 报工时间 */
    @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
    @Excel(name = "报工时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date doTime;

    /** 工人id */
    @Excel(name = "工人id")
    private String userId;

    /** 姓名 */
    @Excel(name = "姓名")
    private String userName;

    /** 单价 */
    @Excel(name = "单价")
    private BigDecimal money;

    /** 报工数量 */
    @Excel(name = "报工数量")
    private BigDecimal count;

    /** 总价 */
    @Excel(name = "总价")
    private BigDecimal allMoney;

    /** 报工表id */
    @Excel(name = "报工表id")
    private String parentId;

    /** 合格数量 */
    @Excel(name = "合格数量")
    private BigDecimal successCount;

    /** 不合格数量 */
    @Excel(name = "不合格数量")
    private BigDecimal errorCount;

    /** 合格率 */
    @Excel(name = "合格率")
    private BigDecimal successLv;

    /** 状态 */
    @Excel(name = "状态")
    private String status;

    /** 质检日期 */
    @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
    @Excel(name = "质检日期", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date zhijianDate;

    /** 质检人 */
    @Excel(name = "质检人")
    private String zhijianUser;

    /** 质检人id */
    @Excel(name = "质检人id")
    private String zhijianId;

    /** 分配类型（0：计件；1：计时） */
    @Excel(name = "分配类型", readConverterExp = "0=：计件；1：计时")
    private String type;

    /** 小时 */
    @Excel(name = "小时")
    private BigDecimal hour;

    /** 车间 */
    @Excel(name = "车间")
    private String deptName;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private String projectId;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private String saleId;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private String gongxuId;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private String goodId;

    /** 使用报工数量 */
    @Excel(name = "使用报工数量")
    private BigDecimal saleCount;

    /** 工序名称 */
    @Excel(name = "工序名称")
    private String name;

    /** 工序产品名称 */
    @Excel(name = "工序产品名称")
    private String gongxuName;

    /** 工序产品型号 */
    @Excel(name = "工序产品型号")
    private String gongxuModel;

    /** 报工成本 */
    @Excel(name = "报工成本")
    private BigDecimal saleMoney;

    public void setId(String id)
            {
            this.id = id;
            }

    public String getId()
            {
            return id;
            }
    public void setXuhao(String xuhao)
            {
            this.xuhao = xuhao;
            }

    public String getXuhao()
            {
            return xuhao;
            }
    public void setDelFlag(String delFlag)
            {
            this.delFlag = delFlag;
            }

    public String getDelFlag()
            {
            return delFlag;
            }
    public void setDoTime(Date doTime)
            {
            this.doTime = doTime;
            }

    public Date getDoTime()
            {
            return doTime;
            }
    public void setUserId(String userId)
            {
            this.userId = userId;
            }

    public String getUserId()
            {
            return userId;
            }
    public void setUserName(String userName)
            {
            this.userName = userName;
            }

    public String getUserName()
            {
            return userName;
            }
    public void setMoney(BigDecimal money)
            {
            this.money = money;
            }

    public BigDecimal getMoney()
            {
            return money;
            }
    public void setCount(BigDecimal count)
            {
            this.count = count;
            }

    public BigDecimal getCount()
            {
            return count;
            }
    public void setAllMoney(BigDecimal allMoney)
            {
            this.allMoney = allMoney;
            }

    public BigDecimal getAllMoney()
            {
            return allMoney;
            }
    public void setParentId(String parentId)
            {
            this.parentId = parentId;
            }

    public String getParentId()
            {
            return parentId;
            }
    public void setSuccessCount(BigDecimal successCount)
            {
            this.successCount = successCount;
            }

    public BigDecimal getSuccessCount()
            {
            return successCount;
            }
    public void setErrorCount(BigDecimal errorCount)
            {
            this.errorCount = errorCount;
            }

    public BigDecimal getErrorCount()
            {
            return errorCount;
            }
    public void setSuccessLv(BigDecimal successLv)
            {
            this.successLv = successLv;
            }

    public BigDecimal getSuccessLv()
            {
            return successLv;
            }
    public void setStatus(String status)
            {
            this.status = status;
            }

    public String getStatus()
            {
            return status;
            }
    public void setZhijianDate(Date zhijianDate)
            {
            this.zhijianDate = zhijianDate;
            }

    public Date getZhijianDate()
            {
            return zhijianDate;
            }
    public void setZhijianUser(String zhijianUser)
            {
            this.zhijianUser = zhijianUser;
            }

    public String getZhijianUser()
            {
            return zhijianUser;
            }
    public void setZhijianId(String zhijianId)
            {
            this.zhijianId = zhijianId;
            }

    public String getZhijianId()
            {
            return zhijianId;
            }
    public void setType(String type)
            {
            this.type = type;
            }

    public String getType()
            {
            return type;
            }
    public void setHour(BigDecimal hour)
            {
            this.hour = hour;
            }

    public BigDecimal getHour()
            {
            return hour;
            }
    public void setDeptName(String deptName)
            {
            this.deptName = deptName;
            }

    public String getDeptName()
            {
            return deptName;
            }
    public void setProjectId(String projectId)
            {
            this.projectId = projectId;
            }

    public String getProjectId()
            {
            return projectId;
            }
    public void setSaleId(String saleId)
            {
            this.saleId = saleId;
            }

    public String getSaleId()
            {
            return saleId;
            }
    public void setGongxuId(String gongxuId)
            {
            this.gongxuId = gongxuId;
            }

    public String getGongxuId()
            {
            return gongxuId;
            }
    public void setGoodId(String goodId)
            {
            this.goodId = goodId;
            }

    public String getGoodId()
            {
            return goodId;
            }
    public void setSaleCount(BigDecimal saleCount)
            {
            this.saleCount = saleCount;
            }

    public BigDecimal getSaleCount()
            {
            return saleCount;
            }
    public void setName(String name)
            {
            this.name = name;
            }

    public String getName()
            {
            return name;
            }
    public void setGongxuName(String gongxuName)
            {
            this.gongxuName = gongxuName;
            }

    public String getGongxuName()
            {
            return gongxuName;
            }
    public void setGongxuModel(String gongxuModel)
            {
            this.gongxuModel = gongxuModel;
            }

    public String getGongxuModel()
            {
            return gongxuModel;
            }
    public void setSaleMoney(BigDecimal saleMoney)
            {
            this.saleMoney = saleMoney;
            }

    public BigDecimal getSaleMoney()
            {
            return saleMoney;
            }

    @Override
    public String toString(){
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id",getId())
            .append("xuhao",getXuhao())
            .append("delFlag",getDelFlag())
            .append("createBy",getCreateBy())
            .append("createTime",getCreateTime())
            .append("updateBy",getUpdateBy())
            .append("updateTime",getUpdateTime())
            .append("remark",getRemark())
            .append("doTime",getDoTime())
            .append("userId",getUserId())
            .append("userName",getUserName())
            .append("money",getMoney())
            .append("count",getCount())
            .append("allMoney",getAllMoney())
            .append("parentId",getParentId())
            .append("successCount",getSuccessCount())
            .append("errorCount",getErrorCount())
            .append("successLv",getSuccessLv())
            .append("status",getStatus())
            .append("zhijianDate",getZhijianDate())
            .append("zhijianUser",getZhijianUser())
            .append("zhijianId",getZhijianId())
            .append("type",getType())
            .append("hour",getHour())
            .append("deptName",getDeptName())
            .append("projectId",getProjectId())
            .append("saleId",getSaleId())
            .append("gongxuId",getGongxuId())
            .append("goodId",getGoodId())
            .append("saleCount",getSaleCount())
            .append("name",getName())
            .append("gongxuName",getGongxuName())
            .append("gongxuModel",getGongxuModel())
            .append("saleMoney",getSaleMoney())
        .toString();
    }
}
